package com.diploma.interaction.service.impl;


import com.diploma.interaction.mapper.DjnsrxxkzTestMapper;
import com.diploma.interaction.model.DjnsrxxkzTest;
import com.diploma.interaction.model.DjnsrxxkzTestExample;
import com.diploma.interaction.model.User;
import com.diploma.interaction.service.DjNsrxxkzService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.math.BigDecimal;
import java.util.List;

@Service
@Slf4j
public class DjNsrxxkzServiceImpl implements DjNsrxxkzService {

    @Resource
    DjnsrxxkzTestMapper djNsrxxkzMapper;

    @Override
    public List<DjnsrxxkzTest> selectByZjlxAndZjhm(String zjlx, String zjhm) {
        User user =User.builder()
                .sfzjhm(zjhm)
                .sfzjzlDm(zjlx)
                .build();
        //(1 and 2) or (3 and 4)?
        return  djNsrxxkzMapper.selectByZjlxAndZjhm(user);
    }
}
